import { Module } from '@nestjs/common';
import { AnnouncementController } from './announcement.controller';
import { AnnouncementService } from './announcement.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Announcement } from './announcement.entity';
import { DeptModule } from 'src/dept/dept.module';
import { Annread } from './annread.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      Announcement,
      Annread
    ]),
    DeptModule
  ],
  controllers: [AnnouncementController],
  providers: [AnnouncementService],
  exports: [AnnouncementService]
})
export class AnnouncementModule { }
